<?php
header ("content-type: text/xml");
include '_lib.php';
echo '<?xml version="1.0" encoding="UTF-8"?>';?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php $handle = scandir('local/');
   while( list ( $key, $val ) = each ( $handle ) ){
        if ($val[0] != ".") {?>
<url><loc>http://mcpiraten.info/<?=substr($val,0,-4)?>/</loc><changefreq>weekly</changefreq><priority>0.5</priority></url>
<url><loc>http://mcpiraten.info/<?=substr($val,0,-4)?>/server.html</loc><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://mcpiraten.info/<?=substr($val,0,-4)?>/text-impressum.html</loc><changefreq>weekly</changefreq><priority>0</priority></url>
<url><loc>http://mcpiraten.info/<?=substr($val,0,-4)?>/text-config.html</loc><changefreq>weekly</changefreq><priority>0.6</priority></url>
<url><loc>http://mcpiraten.info/<?=substr($val,0,-4)?>/text-hilfe.html</loc><changefreq>weekly</changefreq><priority>0.6</priority></url>
<url><loc>http://mcpiraten.info/<?=substr($val,0,-4)?>/user.html</loc><changefreq>weekly</changefreq><priority>0</priority></url>
<?php } }
$data = MINE_server_list();
while( list ( $key, $val ) = each ( $data ) ){
	echo "<url><loc>http://mcpiraten.info/".urlencode($val["name"])."_".$val["id"].".html</loc><changefreq>".($val["rss"]?"weekly":"daily")."</changefreq><priority>0.5</priority></url>\r\n";
}

?>
</urlset>